import {
	defineStore
} from 'pinia';

export const usePaymentStore = defineStore('paymentInfo', {
	state: () => ({
		type: 0,
	}),
	actions: {
		updateInfo(newInfo) {
			// 使用对象解构赋值直接更新状态  
			this.$patch(newInfo);
		}
	}
});